#ifndef __CE_MATH_RECT_H__
#define __CE_MATH_RECT_H__

/**
 * \addtogroup math
 * @{
 */

/**
 * @brief Integer based rectangle
 */
struct ceRect
{
  int x;
  int y;
  unsigned w;
  unsigned h;

  inline ceRect (unsigned w = 0, unsigned h = 0) : x(0), y(0), w(w), h(h) {}
  inline ceRect (int x, int y, unsigned w, unsigned h) : x(x), y(y), w(w), h(h) {}

  inline bool operator== (const ceRect& other)
  {
    return x == other.x && y == other.y && w == other.w && h == other.h;
  }
};

/** @} */
#endif /* __CE_MATH_RECT_H__ */

